<template>
  <div class="home">
    <iframe style="width:100%;height:calc(100vh - 88px)" :src="iframeUrl"/>
  </div>
</template>

<script>
import { gotoPath } from "@/api/login";
import { obtainiframeUrl } from "@/api/iframeUrl";
export default {
  name: "Mysql",
  data() {
    return {
      iframeUrl:''
    };
  },
    created(){
      this.getList()
  },
  methods: {
        getList() {
        const data=localStorage.getItem('currentPath')
        const params={
          path:data
        }
          gotoPath(params).then(response => {
              obtainiframeUrl(response.body).then(response => {
                  this.iframeUrl=response.body
          });
          });
    },
  },

};
</script>

<style scoped lang="scss">
.home {
  width: 100%;
  height: 100%;
}
</style>

